package iliasTests;

public class McCarthy
{
    static int key;

    static int mcCarthy(int n)
    {
        key = key + 1;
        if (n <= 100)
        {
            return mcCarthy(mcCarthy(n + 11));
        }
        else
        {
            return n - 10;
        }
    }

    public static void main(String[] args)
    {
        System.out.println(mcCarthy(105));
        System.out.println(key);
    }
}
